package com.yong;

import com.spring.HYApplicationContext;
import com.yong.service.IOrderService;
import com.yong.service.UserService;

/**
 * @Author: huangYong
 * @Date: 2021/9/4 10:37
 */
public class Test {

    public static void main(String[] args) {
        HYApplicationContext hyApplicationContext = new HYApplicationContext(AppConfig.class);

        IOrderService bean = (IOrderService) hyApplicationContext.getBean("orderService");
//        System.out.println(bean);
        bean.execute();
//        bean.test();
    }

}
